#
# Be sure to run `pod lib lint commonModule.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'commonModule'
  s.version          = '0.6.3'
  s.summary          = '简短描述'

  # This description is used to generate tags and improve search results.
  #   * Think: What does it do? Why did you write it? What is the focus?
  #   * Try to keep it short, snappy and to the point.
  #   * Write the description between the DESC delimiters below.
  #   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = '详细描述'

  s.homepage         = 'http://www.qq.com'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'Cansing' => 'Cansing@163.com' }
  s.source           = { :git => 'https://gitee.com/cansng/common-module.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '12.0'

  #子文件夹
  #s.subspec 'Classes' do | ss |
    #source_files, public_header_files, private_header_files需要在同一级下面
    #ss.source_files = 'dataStatisticsModule/Classes/**/*.{h,m}'
    #ss.private_header_files =
    #'waterPurifierModule/Classes/waterPurifierModuleBundle.h',
    #'waterPurifierModule/Classes/CTWBProgress.h'
    #ss.public_header_files = 'dataStatisticsModule/Classes/controller/AutoDetailViewController.h'
    #'porscheBathtubModule/Classes/VC/alarmViewController.h',
    #'porscheBathtubModule/Classes/VC/porscheBathtubSettingViewController.h'
    #ss.private_header_files = 'instructionKits/Classes/instructionKitsBundle.h'
    #ss.private_header_files =
    #'instructionKits/Classes/instructionKitsBundle.h',
    #'instructionKits/Classes/playerViewController.h'

    #不包含
    #ss.exclude_files = 'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak.xib',
    #'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak2.xib',
    #'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak2.m'
    #ss.exclude_files = ['oneKeyRepairModule/Classes/alert/dateTimeAlertView.m', 'oneKeyRepairModule/Classes/alert/dateTimeAlertView.h']
    #ss.exclude_files = 'oneKeyRepairModule/Classes/alert/bak/*.{h,m,xib}',
    #'oneKeyRepairModule/Classes/tools/AddrPCA/Address/bak/*.{h,m,xib}'
  #end

  #s.source_files = 'commonModule/commonModule.h'

  #子文件夹
  s.subspec 'constants' do | ss |
    ss.source_files = 'commonModule/constants/**/*.{h,m}'
  end

  #子文件夹
  s.subspec 'utils' do | ss |
    ss.source_files = 'commonModule/utils/**/*.{h,m}'
  end

  #子文件夹
  s.subspec 'components' do | ss |
      #子文件夹
      ss.subspec 'CustomerSwitchButton' do | sss |
          sss.dependency 'commonModule/utils'
          sss.source_files = 'commonModule/components/CustomerSwitchButton/**/*.{h,m}'
      end

      #子文件夹
      ss.subspec 'RGSColorSlider' do | sss |
          sss.resources = 'commonModule/components/RGSColorSlider/**/*.{xib,json,html,jpg,gif,png,xcassets,plist,bundle,geojson}'
          sss.source_files = 'commonModule/components/RGSColorSlider/**/*.{h,m}'
      end

      #子文件夹
      ss.subspec 'FFAirCompNetwork' do | sss |
          sss.dependency 'AFNetworking', '~> 3.2.1'
          sss.source_files = 'commonModule/components/FFAirCompNetwork/*.{h,m}'

          #子文件夹
          sss.subspec 'FMDB' do | ssss |
            ssss.source_files = 'commonModule/components/FFAirCompNetwork/FMDB/**/*.{h,m}'
          end

          #子文件夹
          sss.subspec 'NetworkCache' do | ssss |
            ssss.source_files = 'commonModule/components/FFAirCompNetwork/NetworkCache/**/*.{h,m}'
          end
      end

      #子文件夹
      ss.subspec 'FFAirCompQRCode' do | sss |
          sss.resources = 'commonModule/components/FFAirCompQRCode/**/*.bundle'
          sss.source_files = 'commonModule/components/FFAirCompQRCode/*.{h,m}'

          #子文件夹
          sss.subspec 'libqrencode' do | ssss |
            ssss.source_files = 'commonModule/components/FFAirCompQRCode/libqrencode/*'
          end

          #子文件夹
          sss.subspec 'QREncode' do | ssss |
            ssss.source_files = 'commonModule/components/FFAirCompQRCode/QREncode/*'
          end

          #子文件夹
          sss.subspec 'QRScan' do | ssss |
            ssss.source_files = 'commonModule/components/FFAirCompQRCode/QRScan/*'
          end
      end
  end

  #s.resource_bundles = {
  #  'dataStatisticsModule' => ['dataStatisticsModule/**/*.{xib,json,html,jpg,gif,png,xcassets,plist,bundle,geojson}']
  #}

  #资源加到resource_bundles里面去了, 所以要在外面再移除一次
  #s.exclude_files = [ 'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak.xib',
  #'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak2.xib',
  #'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak2.m' ]

  #   依赖本地库和远程库的方法一样
  #   s.dependency 'JMCommonLib'
  #   依赖本地库和远程库的方法一样,但要在 Podfile 里面加入路径
  #   pod 'JMLibCommon', :path => './JMLibCommon/JMLibCommon.podspec'
  #   s.dependency 'dataStatisticsModule'

  #阿里私有库
  #s.dependency 'IMSThingCapability', '1.8.8'
  #阿里需要的第三方库
  #s.dependency 'CocoaAsyncSocket'

  #第三方资源库
  #s.dependency 'Masonry'
  #s.dependency 'BRPickerView'
  #s.dependency 'lottie-ios', '4.2.0'
  #s.dependency 'SWTableViewCell'
  #s.dependency 'JMOYCMenuView'
  #s.dependency 'ChameleonFramework'
  #s.dependency 'ReactiveObjC'
  #s.dependency 'FSCalendar'
  #s.dependency 'zhPopupController', '2.0.0'
  #s.dependency 'YYModel', '1.0.4'
  #s.dependency 'roundedCornersCharts'

  #s.static_framework = true

  #s.user_target_xcconfig = {'ENABLE_BITCODE' => 'NO'}
  #s.user_target_xcconfig = {'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'}
  #s.pod_target_xcconfig = {'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'}

  #   rm -rf ~/Library/Developer/Xcode/DerivedData/
  #   pod deintegrate
  #   pod update
end
